package com.bailan.foreat.service;

import com.bailan.foreat.entity.Address;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ste
 * @since 2023-02-21 07:50:43
 */
public interface AddressService extends IService<Address> {
    List<Address> getAll(Integer userId);

    @Transactional
    void addAddress(Integer userId, Address address);

    Address selectById(Integer addressId);

    @Transactional
    void updateAddress(Address address);

    void deleteById(Integer addressId);
}
